﻿using System.Data.Common;
using StackExchange.Profiling;
using StackExchange.Profiling.Data;

namespace SlamCms.Data
{
	public class MiniProfilerDbConnectionResolver : DefaultDbConnectionResolver
	{
		public override DbConnection GetConnection()
		{
			var connection = base.GetConnection();
			return new ProfiledDbConnection(connection, MiniProfiler.Current);
		}
	}
}
